import requests

# 定义请求url和传入的data
url = "http://0.0.0.0:5000/v1/main_serve/"
data = {"uid":"134222224", "text": "头痛"}

# 向服务发送post请求
res = requests.post(url, data=data)
# 打印返回的结果
print(res.text)